<?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
class Orderdate_model extends CI_Model {
	public function __construct() {
		parent::__construct ();
	}
	/*
	 *根据日期和类型查找
	 */
	public function find_by_date($date,$type){
		$this->db->where('date', $date);
		$this->db->where('type', $type);
		$query = $this->db->get('t_orderdate');
		return $query->row_array();
	}
}